<!-- 股本结构 -->
<template>
  <div class="table w1021">
    <div class="tableTh flex">
      <span class="tableTd w220 left">股份类型</span>
      <span class="tableTd w220">
        总股本
        <br />（万股）
      </span>
      <span class="tableTd w220">
        流通股
        <br />（万股）
      </span>
      <span class="tableTd w220">
        流通A股
        <br />（万股）
      </span>
      <span class="tableTd w220">
        流通B股
        <br />（万股）
      </span>
      <span class="tableTd w220">境外上市其他股份（万股）</span>
      <span class="tableTd w220">其他已流通股份（万股）</span>
      <span class="tableTd w220">受限流通股份（万股）</span>
      <span class="tableTd w220">非流通股合计（万股）</span>
    </div>
    <div class="tableTr tableBody flex" v-for="(item,index) in data" :key="index">
      <span class="orange tableTd w220 top">{{item.changeDate}}</span>
      <span class="orange tableTd w220 top">{{item.total|filterVal("number")}}</span>
      <span class="orange tableTd w220 top">{{item.flShr|filterVal("number")}}</span>
      <span class="orange tableTd w220 top">{{item.flaShr|filterVal("number")}}</span>
      <span class="orange tableTd w220 top">{{item.bShr|filterVal("number")}}</span>
      <span class="orange tableTd w220 top">{{item.othAbroad|filterVal("number")}}</span>
      <span class="orange tableTd w220 top">{{item.othFl|filterVal("number")}}</span>
      <span class="orange tableTd w220 top">{{item.totNonfl|filterVal("number")}}</span>
      <span class="orange tableTd w220 top">{{item.totLtdfl|filterVal("number")}}</span>
    </div>
    <div class="tableNone orange w1021 top" v-if="data.length==0">暂无数据</div>
  </div>
</template>

<script>
import { number } from "../../script/api";
export default {
  data() {
    return {};
  },
  props: ["data"],
  filters: {
    filterVal(ops, num) {
      if (typeof ops == "number") {
        return number(ops, num);
      }
      return ops ? ops : "--";
    }
  },
  components: {},
  computed: {},
  mounted() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>